﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using Customer_Profile.eCard.DBDao;
using KVB.Common;
using System.IO;
using Customer_Profile.Admin;

namespace Customer_Profile.eCard.Match
{
    public partial class UnlockMatch : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                bindMatched();
            }
        }

        private void bindMatched()
        {
            try
            {
                DataSet ds = netBankDao.getMatchedList("2013-01-01", "2013-12-31");
                if (ds != null && ds.Tables.Count > 0)
                {
                    gridUnlockMatch.DataSource = ds.Tables[0];
                    gridUnlockMatch.DataBind();

                    //detailGrid.DataSource = ds.Tables[1];
                    //detailGrid.DataBind();
                }
                else
                {
                    gridUnlockMatch.DataBind();
                    //detailGrid.DataBind();
                }
            }
            catch (Exception ex)
            {
                Log.WriteDefaultLog("bindMatched", ex.ToString());
            }
        }
    }
}